package com.yunxi.sto.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="CreditReportVO 对象", description="征信报表")
public class CreditReportVO implements Serializable {

   @ApiModelProperty(value = "金融公司")
   private String financingInsitution;

   @ApiModelProperty(value = "产品类型")
   private String productType;

   @ApiModelProperty(value = "申请量")
   private String auditCount;

   @ApiModelProperty(value = "受理量")
   private String acceptCount;

   @ApiModelProperty(value = "审核通过数")
   private String aggreCount;

   @ApiModelProperty(value = "审核通过率")
   private String aggrePercent;

   @ApiModelProperty(value = "审核拒绝数")
   private String refuseCount;

   @ApiModelProperty(value = "审核拒绝率")
   private String refusePercent;

   @ApiModelProperty(value = "审核平均时长")
   private String auditHour;

   @ApiModelProperty(value = "金融公司代码")
   private String partnerCodes;

   @ApiModelProperty(value = "金融公司代码集合")
   private List<String> partnerCodeList;

   @ApiModelProperty(value = "结束时间")
   @JsonDeserialize(using = DateJsonDeserializer.class)
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date endTime;

   @ApiModelProperty(value = "开始时间")
   @JsonDeserialize(using = DateJsonDeserializer.class)
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date startTime;
}
